﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MovieRowManager.aspx.cs" Inherits="UI.Admin.MovieRowManager" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="container body-content">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ScheduleId,HallId,MovieId" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="ScheduleId" HeaderText="ScheduleId" ReadOnly="True" SortExpression="ScheduleId" />
                <asp:BoundField DataField="SchedulePrice" HeaderText="SchedulePrice" SortExpression="SchedulePrice" />
                <asp:BoundField DataField="ScheduleBeginTime" HeaderText="ScheduleBeginTime" SortExpression="ScheduleBeginTime" />
                <asp:BoundField DataField="HallId" HeaderText="HallId" ReadOnly="True" SortExpression="HallId" />
                <asp:BoundField DataField="HallSeats" HeaderText="HallSeats" SortExpression="HallSeats" />
                <asp:BoundField DataField="HallDescription" HeaderText="HallDescription" SortExpression="HallDescription" />
                <asp:BoundField DataField="MovieId" HeaderText="MovieId" ReadOnly="True" SortExpression="MovieId" />
                <asp:BoundField DataField="MovieName" HeaderText="MovieName" SortExpression="MovieName" />
                <asp:BoundField DataField="MovieMainActor" HeaderText="MovieMainActor" SortExpression="MovieMainActor" />
                <asp:BoundField DataField="MovieDirector" HeaderText="MovieDirector" SortExpression="MovieDirector" />
                <asp:BoundField DataField="MovieDuration" HeaderText="MovieDuration" SortExpression="MovieDuration" />
                <asp:BoundField DataField="MovieDesription" HeaderText="MovieDesription" SortExpression="MovieDesription" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SouthWindConnectionString %>" SelectCommand="SELECT * FROM [ScheduleInfo]"></asp:SqlDataSource>
    </div>
    <link href="Content/CommonStyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
